import Layout from '@/layout'

const Router = {
  path: '/kyyOfficialWebsite',
  component: Layout,
  redirect: '/bannerManage',
  name: 'kyyOfficialWebsite',

  meta: {
    title: '卡优优官网配置',
    icon: 'kyyOfficialWebsite'
  },
  children: [{
      path: 'bannerManage',
      component: () => import('@/views/kyyOfficialWebsite/bannerManage/index'),
      name: 'bannerManage',
      meta: {
        title: '轮播图管理',
        noCache: true
      }
    },
    {
      path: 'articleSort',
      component: () => import('@/views/kyyOfficialWebsite/articleSort/index'),
      name: 'articleSort',
      meta: {
        title: '文章分类',
        noCache: true
      }
    },
    {
      path: 'articleList',
      component: () => import('@/views/kyyOfficialWebsite/articleList/index'),
      name: 'articleList',
      meta: {
        title: '文章列表',
        noCache: true
      }
    },
    {
      path: 'newsManagement',
      component: () => import('@/views/kyyOfficialWebsite/newsManagement/index'),
      name: 'newsManagement',
      meta: {
        title: '快讯管理',
        noCache: true
      }
    },
    {
      path: 'offeringCalendar',
      component: () => import('@/views/kyyOfficialWebsite/offeringCalendar/index'),
      name: 'offeringCalendar',
      meta: {
        title: '发售日历',
        noCache: true
      }
    },
  ]
}

export default Router
